Typescrit reduce to break array of objects into separate arrays based on a property